package com.personal.pojo;

import java.util.ArrayList;
import java.util.List;

public class TApplyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TApplyExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andApplyidIsNull() {
            addCriterion("applyId is null");
            return (Criteria) this;
        }

        public Criteria andApplyidIsNotNull() {
            addCriterion("applyId is not null");
            return (Criteria) this;
        }

        public Criteria andApplyidEqualTo(Integer value) {
            addCriterion("applyId =", value, "applyid");
            return (Criteria) this;
        }

        public Criteria andApplyidNotEqualTo(Integer value) {
            addCriterion("applyId <>", value, "applyid");
            return (Criteria) this;
        }

        public Criteria andApplyidGreaterThan(Integer value) {
            addCriterion("applyId >", value, "applyid");
            return (Criteria) this;
        }

        public Criteria andApplyidGreaterThanOrEqualTo(Integer value) {
            addCriterion("applyId >=", value, "applyid");
            return (Criteria) this;
        }

        public Criteria andApplyidLessThan(Integer value) {
            addCriterion("applyId <", value, "applyid");
            return (Criteria) this;
        }

        public Criteria andApplyidLessThanOrEqualTo(Integer value) {
            addCriterion("applyId <=", value, "applyid");
            return (Criteria) this;
        }

        public Criteria andApplyidIn(List<Integer> values) {
            addCriterion("applyId in", values, "applyid");
            return (Criteria) this;
        }

        public Criteria andApplyidNotIn(List<Integer> values) {
            addCriterion("applyId not in", values, "applyid");
            return (Criteria) this;
        }

        public Criteria andApplyidBetween(Integer value1, Integer value2) {
            addCriterion("applyId between", value1, value2, "applyid");
            return (Criteria) this;
        }

        public Criteria andApplyidNotBetween(Integer value1, Integer value2) {
            addCriterion("applyId not between", value1, value2, "applyid");
            return (Criteria) this;
        }

        public Criteria andApplycourseIsNull() {
            addCriterion("applycourse is null");
            return (Criteria) this;
        }

        public Criteria andApplycourseIsNotNull() {
            addCriterion("applycourse is not null");
            return (Criteria) this;
        }

        public Criteria andApplycourseEqualTo(Integer value) {
            addCriterion("applycourse =", value, "applycourse");
            return (Criteria) this;
        }

        public Criteria andApplycourseNotEqualTo(Integer value) {
            addCriterion("applycourse <>", value, "applycourse");
            return (Criteria) this;
        }

        public Criteria andApplycourseGreaterThan(Integer value) {
            addCriterion("applycourse >", value, "applycourse");
            return (Criteria) this;
        }

        public Criteria andApplycourseGreaterThanOrEqualTo(Integer value) {
            addCriterion("applycourse >=", value, "applycourse");
            return (Criteria) this;
        }

        public Criteria andApplycourseLessThan(Integer value) {
            addCriterion("applycourse <", value, "applycourse");
            return (Criteria) this;
        }

        public Criteria andApplycourseLessThanOrEqualTo(Integer value) {
            addCriterion("applycourse <=", value, "applycourse");
            return (Criteria) this;
        }

        public Criteria andApplycourseIn(List<Integer> values) {
            addCriterion("applycourse in", values, "applycourse");
            return (Criteria) this;
        }

        public Criteria andApplycourseNotIn(List<Integer> values) {
            addCriterion("applycourse not in", values, "applycourse");
            return (Criteria) this;
        }

        public Criteria andApplycourseBetween(Integer value1, Integer value2) {
            addCriterion("applycourse between", value1, value2, "applycourse");
            return (Criteria) this;
        }

        public Criteria andApplycourseNotBetween(Integer value1, Integer value2) {
            addCriterion("applycourse not between", value1, value2, "applycourse");
            return (Criteria) this;
        }

        public Criteria andApplycoachIsNull() {
            addCriterion("applycoach is null");
            return (Criteria) this;
        }

        public Criteria andApplycoachIsNotNull() {
            addCriterion("applycoach is not null");
            return (Criteria) this;
        }

        public Criteria andApplycoachEqualTo(Integer value) {
            addCriterion("applycoach =", value, "applycoach");
            return (Criteria) this;
        }

        public Criteria andApplycoachNotEqualTo(Integer value) {
            addCriterion("applycoach <>", value, "applycoach");
            return (Criteria) this;
        }

        public Criteria andApplycoachGreaterThan(Integer value) {
            addCriterion("applycoach >", value, "applycoach");
            return (Criteria) this;
        }

        public Criteria andApplycoachGreaterThanOrEqualTo(Integer value) {
            addCriterion("applycoach >=", value, "applycoach");
            return (Criteria) this;
        }

        public Criteria andApplycoachLessThan(Integer value) {
            addCriterion("applycoach <", value, "applycoach");
            return (Criteria) this;
        }

        public Criteria andApplycoachLessThanOrEqualTo(Integer value) {
            addCriterion("applycoach <=", value, "applycoach");
            return (Criteria) this;
        }

        public Criteria andApplycoachIn(List<Integer> values) {
            addCriterion("applycoach in", values, "applycoach");
            return (Criteria) this;
        }

        public Criteria andApplycoachNotIn(List<Integer> values) {
            addCriterion("applycoach not in", values, "applycoach");
            return (Criteria) this;
        }

        public Criteria andApplycoachBetween(Integer value1, Integer value2) {
            addCriterion("applycoach between", value1, value2, "applycoach");
            return (Criteria) this;
        }

        public Criteria andApplycoachNotBetween(Integer value1, Integer value2) {
            addCriterion("applycoach not between", value1, value2, "applycoach");
            return (Criteria) this;
        }

        public Criteria andApplymemIsNull() {
            addCriterion("applymem is null");
            return (Criteria) this;
        }

        public Criteria andApplymemIsNotNull() {
            addCriterion("applymem is not null");
            return (Criteria) this;
        }

        public Criteria andApplymemEqualTo(Integer value) {
            addCriterion("applymem =", value, "applymem");
            return (Criteria) this;
        }

        public Criteria andApplymemNotEqualTo(Integer value) {
            addCriterion("applymem <>", value, "applymem");
            return (Criteria) this;
        }

        public Criteria andApplymemGreaterThan(Integer value) {
            addCriterion("applymem >", value, "applymem");
            return (Criteria) this;
        }

        public Criteria andApplymemGreaterThanOrEqualTo(Integer value) {
            addCriterion("applymem >=", value, "applymem");
            return (Criteria) this;
        }

        public Criteria andApplymemLessThan(Integer value) {
            addCriterion("applymem <", value, "applymem");
            return (Criteria) this;
        }

        public Criteria andApplymemLessThanOrEqualTo(Integer value) {
            addCriterion("applymem <=", value, "applymem");
            return (Criteria) this;
        }

        public Criteria andApplymemIn(List<Integer> values) {
            addCriterion("applymem in", values, "applymem");
            return (Criteria) this;
        }

        public Criteria andApplymemNotIn(List<Integer> values) {
            addCriterion("applymem not in", values, "applymem");
            return (Criteria) this;
        }

        public Criteria andApplymemBetween(Integer value1, Integer value2) {
            addCriterion("applymem between", value1, value2, "applymem");
            return (Criteria) this;
        }

        public Criteria andApplymemNotBetween(Integer value1, Integer value2) {
            addCriterion("applymem not between", value1, value2, "applymem");
            return (Criteria) this;
        }

        public Criteria andApplystatesIsNull() {
            addCriterion("applystates is null");
            return (Criteria) this;
        }

        public Criteria andApplystatesIsNotNull() {
            addCriterion("applystates is not null");
            return (Criteria) this;
        }

        public Criteria andApplystatesEqualTo(String value) {
            addCriterion("applystates =", value, "applystates");
            return (Criteria) this;
        }

        public Criteria andApplystatesNotEqualTo(String value) {
            addCriterion("applystates <>", value, "applystates");
            return (Criteria) this;
        }

        public Criteria andApplystatesGreaterThan(String value) {
            addCriterion("applystates >", value, "applystates");
            return (Criteria) this;
        }

        public Criteria andApplystatesGreaterThanOrEqualTo(String value) {
            addCriterion("applystates >=", value, "applystates");
            return (Criteria) this;
        }

        public Criteria andApplystatesLessThan(String value) {
            addCriterion("applystates <", value, "applystates");
            return (Criteria) this;
        }

        public Criteria andApplystatesLessThanOrEqualTo(String value) {
            addCriterion("applystates <=", value, "applystates");
            return (Criteria) this;
        }

        public Criteria andApplystatesLike(String value) {
            addCriterion("applystates like", value, "applystates");
            return (Criteria) this;
        }

        public Criteria andApplystatesNotLike(String value) {
            addCriterion("applystates not like", value, "applystates");
            return (Criteria) this;
        }

        public Criteria andApplystatesIn(List<String> values) {
            addCriterion("applystates in", values, "applystates");
            return (Criteria) this;
        }

        public Criteria andApplystatesNotIn(List<String> values) {
            addCriterion("applystates not in", values, "applystates");
            return (Criteria) this;
        }

        public Criteria andApplystatesBetween(String value1, String value2) {
            addCriterion("applystates between", value1, value2, "applystates");
            return (Criteria) this;
        }

        public Criteria andApplystatesNotBetween(String value1, String value2) {
            addCriterion("applystates not between", value1, value2, "applystates");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}